home *** CD-ROM | disk | FTP | other *** search
INI File | 2001-09-10 | 796 b | 35 lines |
- [Name]
- ControlKeys - Use with KeyboardEvent
- By Matthew Peterson, matthew@pinoko.berkeley.edu
-
- [Description]
- 2-19-2000
- Adds polling for control keys, such as:
- Tab = 9
- arrows, up = 200, right = 201, down = 202, left = 203
- Return = 13
- delete = 8
- Feel free to add more keys to this behavior if needed.
-
- [Parameters]
-
- [200072 MP_KBControl]
- GlobalVars whichkeyN whichkeyC IsCap
- //Use with KeyboardEvent Behavior.
- //Contorl keys
- IF(KeyIsDown(kNone,kTabKey))
- whichkeyN = 9
- ELSEIF(KeyIsDown(kNone,kDeleteKey))
- whichkeyN = 8
- ELSEIF(KeyIsDown(kNone,kUpArrowKey))
- whichkeyN = 200
- ELSEIF(KeyIsDown(kNone,kRightArrowKey))
- whichkeyN = 201
- ELSEIF(KeyIsDown(kNone,kDownArrowKey))
- whichkeyN = 52
- ELSEIF(KeyIsDown(kNone,kLeftArrowKey))
- whichkeyN = 53
- ELSEIF(KeyIsDown(kNone,kReturnKey))
- whichkeyN = 13
- ENDIF
-